package test.threads;

import java.util.Date;

public class IncrementorThread extends Thread {

	public long counter = 0;

	public void run() {
		
		while (true) {
			
			counter++;
			
			if (counter == 100000000000L) {
				System.out.println("Thread finished priority " + Thread.currentThread().getPriority() + " " + new Date());
				return;
			}
		}
	}
}
